# -*- coding: utf-8 -*-
"""
Created on Sun Oct 18 04:59:58 2020

@author: Erfan
"""
import numpy as np
from csv import DictReader

data1 = list()

delta_value = 33.1045
min_value = -33.1619
    
with open('Training.csv', 'r') as read_obj1:
    csv_dict_reader1 = DictReader(read_obj1)
    for row1 in csv_dict_reader1:
        data1.append(row1)

def get_data(i):
     data_list = list(data1[i].values())[1:]     
     data_numpy = np.array([float(t) for t in data_list]) 
     data_numpy_scaled = (data_numpy - min_value)/delta_value
     return data_numpy_scaled
           

        
